package com.indexingsystem.boss.entity;

public class NewOrderProducts {
	 /**
		 * 
		 */
	    private static final long serialVersionUID = 7963343627052436776L;

	    private String newOrderProductId;

	    private String orderId;

	    private String productId;

	    private String productName;

	    private Integer productType;

	    private Integer orderType;

	    private String resCategoryId;

	    private String resCategoryName;

	    private String productAbbreviation;

	    private String startYear;

	    private String endYear;

	    private String productPrice;

	    private String reserveEndDate;

	    private Integer reserveNumber;

	    private String createTime;

	    private String updateTime;

	    private Integer unitCount;

	    private Integer isActive;
	    

	    private String alias;
	    public String getAlias() {
			return alias;
		}

		public void setAlias(String alias) {
			this.alias = alias;
		}

		private String upResCategoryId;

	    private String publishDate;

	    private String publishYear;

	    private String publishMonth;

	    private Integer isContinuous;

	    private String resTypeId;

	    private String resTable;

	    public String getUpResCategoryId() {
			return upResCategoryId;
		}

		public void setUpResCategoryId(String upResCategoryId) {
			this.upResCategoryId = upResCategoryId;
		}

		public String getPublishDate() {
			return publishDate;
		}

		public void setPublishDate(String publishDate) {
			this.publishDate = publishDate;
		}

		public String getPublishYear() {
			return publishYear;
		}

		public void setPublishYear(String publishYear) {
			this.publishYear = publishYear;
		}

		public String getPublishMonth() {
			return publishMonth;
		}

		public void setPublishMonth(String publishMonth) {
			this.publishMonth = publishMonth;
		}

		public Integer getIsContinuous() {
			return isContinuous;
		}

		public void setIsContinuous(Integer isContinuous) {
			this.isContinuous = isContinuous;
		}

		public String getResTypeId() {
			return resTypeId;
		}

		public void setResTypeId(String resTypeId) {
			this.resTypeId = resTypeId;
		}

		public String getResTable() {
			return resTable;
		}

		public void setResTable(String resTable) {
			this.resTable = resTable;
		}

		public String getResTypeName() {
			return resTypeName;
		}

		public void setResTypeName(String resTypeName) {
			this.resTypeName = resTypeName;
		}

		public String getPublishTypeName() {
			return publishTypeName;
		}

		public void setPublishTypeName(String publishTypeName) {
			this.publishTypeName = publishTypeName;
		}

		public String getInstitutionsId() {
			return institutionsId;
		}

		public void setInstitutionsId(String institutionsId) {
			this.institutionsId = institutionsId;
		}

		public String getUpInstitutionsId() {
			return upInstitutionsId;
		}

		public void setUpInstitutionsId(String upInstitutionsId) {
			this.upInstitutionsId = upInstitutionsId;
		}

		private String resTypeName;

	    private String publishTypeName;

	    private String institutionsId;

	    private String upInstitutionsId;

	    
	    
	    

	    public String getNewOrderProductId()
	    {
	        return newOrderProductId;
	    }

	    public void setNewOrderProductId(String orderProductId)
	    {
	        this.newOrderProductId = newOrderProductId == null ? null : newOrderProductId.trim();
	    }

	    public String getOrderId()
	    {
	        return orderId;
	    }

	    public void setOrderId(String orderId)
	    {
	        this.orderId = orderId == null ? null : orderId.trim();
	    }

	    public String getProductId()
	    {
	        return productId;
	    }

	    public void setProductId(String productId)
	    {
	        this.productId = productId == null ? null : productId.trim();
	    }

	    public String getProductName()
	    {
	        return productName;
	    }

	    public void setProductName(String productName)
	    {
	        this.productName = productName == null ? null : productName.trim();
	    }

	    public Integer getProductType()
	    {
	        return productType;
	    }

	    public void setProductType(Integer productType)
	    {
	        this.productType = productType;
	    }

	    public String getResCategoryId()
	    {
	        return resCategoryId;
	    }

	    public void setResCategoryId(String resCategoryId)
	    {
	        this.resCategoryId = resCategoryId == null ? null : resCategoryId.trim();
	    }

	    public String getResCategoryName()
	    {
	        return resCategoryName;
	    }

	    public void setResCategoryName(String resCategoryName)
	    {
	        this.resCategoryName = resCategoryName == null ? null : resCategoryName.trim();
	    }

	    public String getProductAbbreviation()
	    {
	        return productAbbreviation;
	    }

	    public void setProductAbbreviation(String productAbbreviation)
	    {
	        this.productAbbreviation = productAbbreviation == null ? null : productAbbreviation.trim();
	    }

	    public String getStartYear()
	    {
	        return startYear;
	    }

	    public void setStartYear(String startYear)
	    {
	        this.startYear = startYear == null ? null : startYear.trim();
	    }

	    public String getEndYear()
	    {
	        return endYear;
	    }

	    public void setEndYear(String endYear)
	    {
	        this.endYear = endYear == null ? null : endYear.trim();
	    }

	    public String getProductPrice()
	    {
	        return productPrice;
	    }

	    public void setProductPrice(String productPrice)
	    {
	        this.productPrice = productPrice == null ? null : productPrice.trim();
	    }

	    public String getCreateTime()
	    {
	        return createTime;
	    }

	    public void setCreateTime(String createTime)
	    {
	        this.createTime = createTime == null ? null : createTime.trim();
	    }

	    public String getUpdateTime()
	    {
	        return updateTime;
	    }

	    public void setUpdateTime(String updateTime)
	    {
	        this.updateTime = updateTime == null ? null : updateTime.trim();
	    }

	    public Integer getUnitCount()
	    {
	        return unitCount;
	    }

	    public void setUnitCount(Integer unitCount)
	    {
	        this.unitCount = unitCount;
	    }

	    public Integer getIsActive()
	    {
	        return isActive;
	    }

	    public void setIsActive(Integer isActive)
	    {
	        this.isActive = isActive;
	    }

	    public Integer getOrderType()
	    {
	        return orderType;
	    }

	    public void setOrderType(Integer orderType)
	    {
	        this.orderType = orderType;
	    }

	    public String getReserveEndDate()
	    {
	        return reserveEndDate;
	    }

	    public void setReserveEndDate(String reserveEndDate)
	    {
	        this.reserveEndDate = reserveEndDate;
	    }

	    public Integer getReserveNumber()
	    {
	        return reserveNumber;
	    }

	    public void setReserveNumber(Integer reserveNumber)
	    {
	        this.reserveNumber = reserveNumber;
	    }

	    public NewOrderProducts()
	    {
	        super();
	    }

	  

		

	    public NewOrderProducts(String newOrderProductId, String orderId, String productId, String productName,
				Integer productType, Integer orderType, String resCategoryId, String resCategoryName,
				String productAbbreviation, String startYear, String endYear, String productPrice, String reserveEndDate,
				Integer reserveNumber, String createTime, String updateTime, Integer unitCount, Integer isActive,
				String alias, String upResCategoryId, String publishDate, String publishYear, String publishMonth,
				Integer isContinuous, String resTypeId, String resTable, String resTypeName, String publishTypeName,
				String institutionsId, String upInstitutionsId) {
			super();
			this.newOrderProductId = newOrderProductId;
			this.orderId = orderId;
			this.productId = productId;
			this.productName = productName;
			this.productType = productType;
			this.orderType = orderType;
			this.resCategoryId = resCategoryId;
			this.resCategoryName = resCategoryName;
			this.productAbbreviation = productAbbreviation;
			this.startYear = startYear;
			this.endYear = endYear;
			this.productPrice = productPrice;
			this.reserveEndDate = reserveEndDate;
			this.reserveNumber = reserveNumber;
			this.createTime = createTime;
			this.updateTime = updateTime;
			this.unitCount = unitCount;
			this.isActive = isActive;
			this.alias = alias;
			this.upResCategoryId = upResCategoryId;
			this.publishDate = publishDate;
			this.publishYear = publishYear;
			this.publishMonth = publishMonth;
			this.isContinuous = isContinuous;
			this.resTypeId = resTypeId;
			this.resTable = resTable;
			this.resTypeName = resTypeName;
			this.publishTypeName = publishTypeName;
			this.institutionsId = institutionsId;
			this.upInstitutionsId = upInstitutionsId;
		}

		@Override
		public String toString() {
			return "NewOrderProducts [newOrderProductId=" + newOrderProductId + ", orderId=" + orderId + ", productId=" + productId
					+ ", productName=" + productName + ", productType=" + productType + ", orderType=" + orderType
					+ ", resCategoryId=" + resCategoryId + ", resCategoryName=" + resCategoryName + ", productAbbreviation="
					+ productAbbreviation + ", startYear=" + startYear + ", endYear=" + endYear + ", productPrice="
					+ productPrice + ", reserveEndDate=" + reserveEndDate + ", reserveNumber=" + reserveNumber
					+ ", createTime=" + createTime + ", updateTime=" + updateTime + ", unitCount=" + unitCount
					+ ", isActive=" + isActive + ", alias=" + alias + ", upResCategoryId=" + upResCategoryId
					+ ", publishDate=" + publishDate + ", publishYear=" + publishYear + ", publishMonth=" + publishMonth
					+ ", isContinuous=" + isContinuous + ", resTypeId=" + resTypeId + ", resTable=" + resTable
					+ ", resTypeName=" + resTypeName + ", publishTypeName=" + publishTypeName + ", institutionsId="
					+ institutionsId + ", upInstitutionsId=" + upInstitutionsId + "]";
		}

		@Override
		public int hashCode() {
			final int prime = 31;
			int result = 1;
			result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
			result = prime * result + ((endYear == null) ? 0 : endYear.hashCode());
			result = prime * result + ((isActive == null) ? 0 : isActive.hashCode());
			result = prime * result + ((orderId == null) ? 0 : orderId.hashCode());
			result = prime * result + ((newOrderProductId == null) ? 0 : newOrderProductId.hashCode());
			result = prime * result + ((orderType == null) ? 0 : orderType.hashCode());
			result = prime * result + ((productAbbreviation == null) ? 0 : productAbbreviation.hashCode());
			result = prime * result + ((productId == null) ? 0 : productId.hashCode());
			result = prime * result + ((productName == null) ? 0 : productName.hashCode());
			result = prime * result + ((productPrice == null) ? 0 : productPrice.hashCode());
			result = prime * result + ((productType == null) ? 0 : productType.hashCode());
			result = prime * result + ((resCategoryId == null) ? 0 : resCategoryId.hashCode());
			result = prime * result + ((resCategoryName == null) ? 0 : resCategoryName.hashCode());
			result = prime * result + ((reserveEndDate == null) ? 0 : reserveEndDate.hashCode());
			result = prime * result + ((reserveNumber == null) ? 0 : reserveNumber.hashCode());
			result = prime * result + ((startYear == null) ? 0 : startYear.hashCode());
			result = prime * result + ((unitCount == null) ? 0 : unitCount.hashCode());
			result = prime * result + ((updateTime == null) ? 0 : updateTime.hashCode());
			
			
			
			result = prime * result + ((alias == null) ? 0 : alias.hashCode());
			result = prime * result + ((upResCategoryId == null) ? 0 : upResCategoryId.hashCode());
			result = prime * result + ((publishDate == null) ? 0 : publishDate.hashCode());
			result = prime * result + ((publishYear == null) ? 0 : publishYear.hashCode());
			result = prime * result + ((publishMonth == null) ? 0 : publishMonth.hashCode());
			result = prime * result + ((isContinuous == null) ? 0 : isContinuous.hashCode());
			result = prime * result + ((resTypeId == null) ? 0 : resTypeId.hashCode());
			result = prime * result + ((resTable == null) ? 0 : resTable.hashCode());
			result = prime * result + ((resTypeName == null) ? 0 : resTypeName.hashCode());
			result = prime * result + ((publishTypeName == null) ? 0 : publishTypeName.hashCode());
			result = prime * result + ((institutionsId == null) ? 0 : institutionsId.hashCode());
			result = prime * result + ((upInstitutionsId == null) ? 0 : upInstitutionsId.hashCode());
			return result;
		}

		@Override
		public boolean equals(Object obj) {
			if (this == obj)
				return true;
			if (obj == null)
				return false;
			if (getClass() != obj.getClass())
				return false;
			NewOrderProducts other = (NewOrderProducts) obj;
			if (createTime == null) {
				if (other.createTime != null)
					return false;
			} else if (!createTime.equals(other.createTime))
				return false;
			if (endYear == null) {
				if (other.endYear != null)
					return false;
			} else if (!endYear.equals(other.endYear))
				return false;
			if (isActive == null) {
				if (other.isActive != null)
					return false;
			} else if (!isActive.equals(other.isActive))
				return false;
			if (orderId == null) {
				if (other.orderId != null)
					return false;
			} else if (!orderId.equals(other.orderId))
				return false;
			if (newOrderProductId == null) {
				if (other.newOrderProductId != null)
					return false;
			} else if (!newOrderProductId.equals(other.newOrderProductId))
				return false;
			if (orderType == null) {
				if (other.orderType != null)
					return false;
			} else if (!orderType.equals(other.orderType))
				return false;
			if (productAbbreviation == null) {
				if (other.productAbbreviation != null)
					return false;
			} else if (!productAbbreviation.equals(other.productAbbreviation))
				return false;
			if (productId == null) {
				if (other.productId != null)
					return false;
			} else if (!productId.equals(other.productId))
				return false;
			if (productName == null) {
				if (other.productName != null)
					return false;
			} else if (!productName.equals(other.productName))
				return false;
			if (productPrice == null) {
				if (other.productPrice != null)
					return false;
			} else if (!productPrice.equals(other.productPrice))
				return false;
			if (productType == null) {
				if (other.productType != null)
					return false;
			} else if (!productType.equals(other.productType))
				return false;
			if (resCategoryId == null) {
				if (other.resCategoryId != null)
					return false;
			} else if (!resCategoryId.equals(other.resCategoryId))
				return false;
			if (resCategoryName == null) {
				if (other.resCategoryName != null)
					return false;
			} else if (!resCategoryName.equals(other.resCategoryName))
				return false;
			if (reserveEndDate == null) {
				if (other.reserveEndDate != null)
					return false;
			} else if (!reserveEndDate.equals(other.reserveEndDate))
				return false;
			if (reserveNumber == null) {
				if (other.reserveNumber != null)
					return false;
			} else if (!reserveNumber.equals(other.reserveNumber))
				return false;
			if (startYear == null) {
				if (other.startYear != null)
					return false;
			} else if (!startYear.equals(other.startYear))
				return false;
			if (unitCount == null) {
				if (other.unitCount != null)
					return false;
			} else if (!unitCount.equals(other.unitCount))
				return false;
			if (updateTime == null) {
				if (other.updateTime != null)
					return false;
			} else if (!updateTime.equals(other.updateTime))
				return false;
			else if (!resCategoryName.equals(other.resCategoryName))
				return false;
			
			if (alias == null) {
				if (other.alias != null)
					return false;
			} else if (!alias.equals(other.alias))
				return false;
			if (upResCategoryId == null) {
				if (other.upResCategoryId != null)
					return false;
			} else if (!upResCategoryId.equals(other.upResCategoryId))
				return false;
			if (publishDate == null) {
				if (other.publishDate != null)
					return false;
			} else if (!publishDate.equals(other.publishDate))
				return false;
			if (publishYear == null) {
				if (other.publishYear != null)
					return false;
			} else if (!publishYear.equals(other.publishYear))
				return false;
			if (publishMonth == null) {
				if (other.publishMonth != null)
					return false;
			} else if (!publishMonth.equals(other.publishMonth))
				return false;
			
			
			if (isContinuous == null) {
				if (other.isContinuous != null)
					return false;
			} else if (!isContinuous.equals(other.isContinuous))
				return false;
			if (resTypeId == null) {
				if (other.resTypeId != null)
					return false;
			} else if (!resTypeId.equals(other.resTypeId))
				return false;
			if (resTable == null) {
				if (other.resTable != null)
					return false;
			} else if (!resTable.equals(other.resTable))
				return false;
			if (resTypeName == null) {
				if (other.resTypeName != null)
					return false;
			} else if (!resTypeName.equals(other.resTypeName))
				return false;
			if (publishTypeName == null) {
				if (other.publishTypeName != null)
					return false;
			} else if (!publishTypeName.equals(other.publishTypeName))
				return false;
			if (institutionsId == null) {
				if (other.institutionsId != null)
					return false;
			} else if (!institutionsId.equals(other.institutionsId))
				return false;
			if (upInstitutionsId == null) {
				if (other.upInstitutionsId != null)
					return false;
			} else if (!upInstitutionsId.equals(other.upInstitutionsId))
				return false;
			
			return true;
		}
}
